package edu.whu.puppygo.crawler;

import edu.whu.puppygo.base.HttpResponse;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author guanruwang
 * @date 2023/12/11$
 */
@RestController
@RequestMapping("/petNews")
@Slf4j
public class PetNewsController {

    public static List<PetNews> petNews;

    @GetMapping("")
    public HttpResponse<List<PetNews>> getPetNews() {
        return HttpResponse.success(petNews);
    }
}
